package com.yu.subject.common.exception;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * @author 路亚
 * @version 0.1
 * @className CodeAndMessage
 * @description
 * @date 2024/12/23 20:24
 * @since jdk11
 */
@AllArgsConstructor
@Getter
@NoArgsConstructor
public enum CodeAndMessage {

    CATEGORY_TYPE_NOT_NULL(1001, "分类类型不能为空"),
    CATEGORY_NAME_NOT_NULL(1002, "分类名称不能为空"),
    PARENT_ID_NOT_NULL(1003, "分类父级id不能为空"),
    CATEGORY_ID_NOT_NULL(1004, "分类id不能为空"),
    LABEL_NAME_NOT_NULL(1005, "标签名称不能为空"),
    LABEL_ID_NOT_NULL(1006, "标签id不能为空"),
    CATEGORY_NOT_LABEL(1007, "该分类下没有标签"),
    SUBJECT_NAME_NOT_NULL(1008, "题目名称不能为空"),
    SUBJECT_DIFFICULT_NOT_NULL(1009, "题目难度不能为空"),
    SUBJECT_TYPE_NOT_NULL(1010, "题目类型不能为空"),
    SUBJECT_SCORE_NOT_NULL(1011, "题目分数不能为空"),
    SUBJECT_ID_NOT_NULL(1012, "题目id不能为空");
    private Integer code;
    private String message;
}
